<?php include_partial('aoiFrontPartials/contentHeader',
	array(
		'nav'=>array(
			array('url'=>url_for('homepage'),'title'=>'Accueil'),
			array('url'=>'','title'=>'R&eacute;servations')
		),
		'title'=>'R&eacute;servations',
		'description'=>'Votre prochain voyage avec Comoros Airways'
	)
); ?>

<section id="content">
	<div class="container">
		
		<div id="mainbody">
			
			<div class="row">

				<div class="span12">

				<?php if(count($flights) > 0): ?>
					<form method="GET" action="<?php echo url_for('booking_confirm')?>">
						<div class="span12">
							<input type="hidden" name="step" value="passengers"/>
							<input type="hidden" name="flight_type" value="<?php echo $flight_type ?>"/>
							<input type="hidden" name="flight_go" value="<?php echo $flight_go ?>"/>
							<input type="hidden" name="flight_back" value="<?php echo $flight_back ?>"/>
							<?php foreach($passengers->getRawValue() as $key=>$val): ?>
							<input type="hidden" name="passengers[]" value="<?php echo $val ?>"/>
							<?php endforeach; ?>

							<h2>Detail des vols</h2>

							<hr class="bs-docs-separator">

							<?php foreach($flights as $flight): ?>
							<div class="row span-box">
									<?php include_partial('aoiFrontPartials/bookingConfirmFlightList', array('flight'=>$flight)) ?>
							</div>
							<?php endforeach; ?>
						</div>
						<div class="span12">
								<fieldset>
									<input type="submit" class="btn btn-large btn-success" value="Confirmer les vols séléctionnés"/>
									<br/><br/>
									<a class="btn" href="<?php echo url_for('booking') ?>">R&eacute;server un autre vol</a>
								</fieldset>
						</div>
					</form>
				<?php else: ?>
						<p>Vous n'avez pas séléctionné de vols, ou choisi un vol non valide</p>
						<div class="span12">
								<fieldset>
									<a class="btn" href="<?php echo url_for('booking') ?>">R&eacute;server un autre vol</a>
								</fieldset>
						</div>
				<?php endif; ?>
				</div><!-- end span12 -->
			</div><!-- end row -->
			
		</div><!-- end mainbody -->
		
	</div><!-- end container -->
</section>